package 类和对象;

public class standard_class {
    //成员变量
    private String name;
    private int age;

    //构造方法
    //无参构造
    public standard_class(){}
    //有参构造
    public standard_class(String name, int age){
        this.name=name;
        this.age=age;
    }

    //set方法
    public void setName(String name){
        this.name=name;
    }
    public void setAge(int age){
        this.age=age;
    }
    //get方法
    public String getName(){
        return name;
    }
    public int getAge(){
        return age;
    }

    //成员方法
    public void show(){
        System.out.println(name+","+age);
    }
}
